#pragma once
// MESSAGE CONTROL_PARA PACKING

#define MAVLINK_MSG_ID_CONTROL_PARA 183

MAVPACKED(
typedef struct __mavlink_control_para_t {
 int16_t pid1_p; /*<  PID1_P*/
 int16_t pid1_i; /*<  PID1_I*/
 int16_t pid1_d; /*<  PID1_D*/
 int16_t pid2_p; /*<  PID2_P*/
 int16_t pid2_i; /*<  PID2_I*/
 int16_t pid2_d; /*<  PID2_D*/
 int16_t pid3_p; /*<  PID3_P*/
 int16_t pid3_i; /*<  PID3_I*/
 int16_t pid3_d; /*<  PID3_D*/
 int16_t pid4_p; /*<  PID4_P*/
 int16_t pid4_i; /*<  PID4_I*/
 int16_t pid4_d; /*<  PID4_D*/
 int16_t pid5_p; /*<  PID5_P*/
 int16_t pid5_i; /*<  PID5_I*/
 int16_t pid5_d; /*<  PID5_D*/
 int16_t pid6_p; /*<  PID6_P*/
 int16_t pid6_i; /*<  PID6_I*/
 int16_t pid6_d; /*<  PID6_D*/
 int16_t pid7_p; /*<  PID7_P*/
 int16_t pid7_i; /*<  PID7_I*/
 int16_t pid7_d; /*<  PID7_D*/
 int16_t pid8_p; /*<  PID8_P*/
 int16_t pid8_i; /*<  PID8_I*/
 int16_t pid8_d; /*<  PID8_D*/
 int16_t pid9_p; /*<  PID9_P*/
 int16_t pid9_i; /*<  PID9_I*/
 int16_t pid9_d; /*<  PID9_D*/
 int16_t pid10_p; /*<  PID10_P*/
 int16_t pid10_i; /*<  PID10_I*/
 int16_t pid10_d; /*<  PID10_D*/
}) mavlink_control_para_t;

#define MAVLINK_MSG_ID_CONTROL_PARA_LEN 60
#define MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN 60
#define MAVLINK_MSG_ID_183_LEN 60
#define MAVLINK_MSG_ID_183_MIN_LEN 60

#define MAVLINK_MSG_ID_CONTROL_PARA_CRC 149
#define MAVLINK_MSG_ID_183_CRC 149



#if MAVLINK_COMMAND_24BIT
#define MAVLINK_MESSAGE_INFO_CONTROL_PARA { \
    183, \
    "CONTROL_PARA", \
    30, \
    {  { "pid1_p", NULL, MAVLINK_TYPE_INT16_T, 0, 0, offsetof(mavlink_control_para_t, pid1_p) }, \
         { "pid1_i", NULL, MAVLINK_TYPE_INT16_T, 0, 2, offsetof(mavlink_control_para_t, pid1_i) }, \
         { "pid1_d", NULL, MAVLINK_TYPE_INT16_T, 0, 4, offsetof(mavlink_control_para_t, pid1_d) }, \
         { "pid2_p", NULL, MAVLINK_TYPE_INT16_T, 0, 6, offsetof(mavlink_control_para_t, pid2_p) }, \
         { "pid2_i", NULL, MAVLINK_TYPE_INT16_T, 0, 8, offsetof(mavlink_control_para_t, pid2_i) }, \
         { "pid2_d", NULL, MAVLINK_TYPE_INT16_T, 0, 10, offsetof(mavlink_control_para_t, pid2_d) }, \
         { "pid3_p", NULL, MAVLINK_TYPE_INT16_T, 0, 12, offsetof(mavlink_control_para_t, pid3_p) }, \
         { "pid3_i", NULL, MAVLINK_TYPE_INT16_T, 0, 14, offsetof(mavlink_control_para_t, pid3_i) }, \
         { "pid3_d", NULL, MAVLINK_TYPE_INT16_T, 0, 16, offsetof(mavlink_control_para_t, pid3_d) }, \
         { "pid4_p", NULL, MAVLINK_TYPE_INT16_T, 0, 18, offsetof(mavlink_control_para_t, pid4_p) }, \
         { "pid4_i", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_control_para_t, pid4_i) }, \
         { "pid4_d", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_control_para_t, pid4_d) }, \
         { "pid5_p", NULL, MAVLINK_TYPE_INT16_T, 0, 24, offsetof(mavlink_control_para_t, pid5_p) }, \
         { "pid5_i", NULL, MAVLINK_TYPE_INT16_T, 0, 26, offsetof(mavlink_control_para_t, pid5_i) }, \
         { "pid5_d", NULL, MAVLINK_TYPE_INT16_T, 0, 28, offsetof(mavlink_control_para_t, pid5_d) }, \
         { "pid6_p", NULL, MAVLINK_TYPE_INT16_T, 0, 30, offsetof(mavlink_control_para_t, pid6_p) }, \
         { "pid6_i", NULL, MAVLINK_TYPE_INT16_T, 0, 32, offsetof(mavlink_control_para_t, pid6_i) }, \
         { "pid6_d", NULL, MAVLINK_TYPE_INT16_T, 0, 34, offsetof(mavlink_control_para_t, pid6_d) }, \
         { "pid7_p", NULL, MAVLINK_TYPE_INT16_T, 0, 36, offsetof(mavlink_control_para_t, pid7_p) }, \
         { "pid7_i", NULL, MAVLINK_TYPE_INT16_T, 0, 38, offsetof(mavlink_control_para_t, pid7_i) }, \
         { "pid7_d", NULL, MAVLINK_TYPE_INT16_T, 0, 40, offsetof(mavlink_control_para_t, pid7_d) }, \
         { "pid8_p", NULL, MAVLINK_TYPE_INT16_T, 0, 42, offsetof(mavlink_control_para_t, pid8_p) }, \
         { "pid8_i", NULL, MAVLINK_TYPE_INT16_T, 0, 44, offsetof(mavlink_control_para_t, pid8_i) }, \
         { "pid8_d", NULL, MAVLINK_TYPE_INT16_T, 0, 46, offsetof(mavlink_control_para_t, pid8_d) }, \
         { "pid9_p", NULL, MAVLINK_TYPE_INT16_T, 0, 48, offsetof(mavlink_control_para_t, pid9_p) }, \
         { "pid9_i", NULL, MAVLINK_TYPE_INT16_T, 0, 50, offsetof(mavlink_control_para_t, pid9_i) }, \
         { "pid9_d", NULL, MAVLINK_TYPE_INT16_T, 0, 52, offsetof(mavlink_control_para_t, pid9_d) }, \
         { "pid10_p", NULL, MAVLINK_TYPE_INT16_T, 0, 54, offsetof(mavlink_control_para_t, pid10_p) }, \
         { "pid10_i", NULL, MAVLINK_TYPE_INT16_T, 0, 56, offsetof(mavlink_control_para_t, pid10_i) }, \
         { "pid10_d", NULL, MAVLINK_TYPE_INT16_T, 0, 58, offsetof(mavlink_control_para_t, pid10_d) }, \
         } \
}
#else
#define MAVLINK_MESSAGE_INFO_CONTROL_PARA { \
    "CONTROL_PARA", \
    30, \
    {  { "pid1_p", NULL, MAVLINK_TYPE_INT16_T, 0, 0, offsetof(mavlink_control_para_t, pid1_p) }, \
         { "pid1_i", NULL, MAVLINK_TYPE_INT16_T, 0, 2, offsetof(mavlink_control_para_t, pid1_i) }, \
         { "pid1_d", NULL, MAVLINK_TYPE_INT16_T, 0, 4, offsetof(mavlink_control_para_t, pid1_d) }, \
         { "pid2_p", NULL, MAVLINK_TYPE_INT16_T, 0, 6, offsetof(mavlink_control_para_t, pid2_p) }, \
         { "pid2_i", NULL, MAVLINK_TYPE_INT16_T, 0, 8, offsetof(mavlink_control_para_t, pid2_i) }, \
         { "pid2_d", NULL, MAVLINK_TYPE_INT16_T, 0, 10, offsetof(mavlink_control_para_t, pid2_d) }, \
         { "pid3_p", NULL, MAVLINK_TYPE_INT16_T, 0, 12, offsetof(mavlink_control_para_t, pid3_p) }, \
         { "pid3_i", NULL, MAVLINK_TYPE_INT16_T, 0, 14, offsetof(mavlink_control_para_t, pid3_i) }, \
         { "pid3_d", NULL, MAVLINK_TYPE_INT16_T, 0, 16, offsetof(mavlink_control_para_t, pid3_d) }, \
         { "pid4_p", NULL, MAVLINK_TYPE_INT16_T, 0, 18, offsetof(mavlink_control_para_t, pid4_p) }, \
         { "pid4_i", NULL, MAVLINK_TYPE_INT16_T, 0, 20, offsetof(mavlink_control_para_t, pid4_i) }, \
         { "pid4_d", NULL, MAVLINK_TYPE_INT16_T, 0, 22, offsetof(mavlink_control_para_t, pid4_d) }, \
         { "pid5_p", NULL, MAVLINK_TYPE_INT16_T, 0, 24, offsetof(mavlink_control_para_t, pid5_p) }, \
         { "pid5_i", NULL, MAVLINK_TYPE_INT16_T, 0, 26, offsetof(mavlink_control_para_t, pid5_i) }, \
         { "pid5_d", NULL, MAVLINK_TYPE_INT16_T, 0, 28, offsetof(mavlink_control_para_t, pid5_d) }, \
         { "pid6_p", NULL, MAVLINK_TYPE_INT16_T, 0, 30, offsetof(mavlink_control_para_t, pid6_p) }, \
         { "pid6_i", NULL, MAVLINK_TYPE_INT16_T, 0, 32, offsetof(mavlink_control_para_t, pid6_i) }, \
         { "pid6_d", NULL, MAVLINK_TYPE_INT16_T, 0, 34, offsetof(mavlink_control_para_t, pid6_d) }, \
         { "pid7_p", NULL, MAVLINK_TYPE_INT16_T, 0, 36, offsetof(mavlink_control_para_t, pid7_p) }, \
         { "pid7_i", NULL, MAVLINK_TYPE_INT16_T, 0, 38, offsetof(mavlink_control_para_t, pid7_i) }, \
         { "pid7_d", NULL, MAVLINK_TYPE_INT16_T, 0, 40, offsetof(mavlink_control_para_t, pid7_d) }, \
         { "pid8_p", NULL, MAVLINK_TYPE_INT16_T, 0, 42, offsetof(mavlink_control_para_t, pid8_p) }, \
         { "pid8_i", NULL, MAVLINK_TYPE_INT16_T, 0, 44, offsetof(mavlink_control_para_t, pid8_i) }, \
         { "pid8_d", NULL, MAVLINK_TYPE_INT16_T, 0, 46, offsetof(mavlink_control_para_t, pid8_d) }, \
         { "pid9_p", NULL, MAVLINK_TYPE_INT16_T, 0, 48, offsetof(mavlink_control_para_t, pid9_p) }, \
         { "pid9_i", NULL, MAVLINK_TYPE_INT16_T, 0, 50, offsetof(mavlink_control_para_t, pid9_i) }, \
         { "pid9_d", NULL, MAVLINK_TYPE_INT16_T, 0, 52, offsetof(mavlink_control_para_t, pid9_d) }, \
         { "pid10_p", NULL, MAVLINK_TYPE_INT16_T, 0, 54, offsetof(mavlink_control_para_t, pid10_p) }, \
         { "pid10_i", NULL, MAVLINK_TYPE_INT16_T, 0, 56, offsetof(mavlink_control_para_t, pid10_i) }, \
         { "pid10_d", NULL, MAVLINK_TYPE_INT16_T, 0, 58, offsetof(mavlink_control_para_t, pid10_d) }, \
         } \
}
#endif

/**
 * @brief Pack a control_para message
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 *
 * @param pid1_p  PID1_P
 * @param pid1_i  PID1_I
 * @param pid1_d  PID1_D
 * @param pid2_p  PID2_P
 * @param pid2_i  PID2_I
 * @param pid2_d  PID2_D
 * @param pid3_p  PID3_P
 * @param pid3_i  PID3_I
 * @param pid3_d  PID3_D
 * @param pid4_p  PID4_P
 * @param pid4_i  PID4_I
 * @param pid4_d  PID4_D
 * @param pid5_p  PID5_P
 * @param pid5_i  PID5_I
 * @param pid5_d  PID5_D
 * @param pid6_p  PID6_P
 * @param pid6_i  PID6_I
 * @param pid6_d  PID6_D
 * @param pid7_p  PID7_P
 * @param pid7_i  PID7_I
 * @param pid7_d  PID7_D
 * @param pid8_p  PID8_P
 * @param pid8_i  PID8_I
 * @param pid8_d  PID8_D
 * @param pid9_p  PID9_P
 * @param pid9_i  PID9_I
 * @param pid9_d  PID9_D
 * @param pid10_p  PID10_P
 * @param pid10_i  PID10_I
 * @param pid10_d  PID10_D
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_control_para_pack(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg,
                               int16_t pid1_p, int16_t pid1_i, int16_t pid1_d, int16_t pid2_p, int16_t pid2_i, int16_t pid2_d, int16_t pid3_p, int16_t pid3_i, int16_t pid3_d, int16_t pid4_p, int16_t pid4_i, int16_t pid4_d, int16_t pid5_p, int16_t pid5_i, int16_t pid5_d, int16_t pid6_p, int16_t pid6_i, int16_t pid6_d, int16_t pid7_p, int16_t pid7_i, int16_t pid7_d, int16_t pid8_p, int16_t pid8_i, int16_t pid8_d, int16_t pid9_p, int16_t pid9_i, int16_t pid9_d, int16_t pid10_p, int16_t pid10_i, int16_t pid10_d)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_CONTROL_PARA_LEN];
    _mav_put_int16_t(buf, 0, pid1_p);
    _mav_put_int16_t(buf, 2, pid1_i);
    _mav_put_int16_t(buf, 4, pid1_d);
    _mav_put_int16_t(buf, 6, pid2_p);
    _mav_put_int16_t(buf, 8, pid2_i);
    _mav_put_int16_t(buf, 10, pid2_d);
    _mav_put_int16_t(buf, 12, pid3_p);
    _mav_put_int16_t(buf, 14, pid3_i);
    _mav_put_int16_t(buf, 16, pid3_d);
    _mav_put_int16_t(buf, 18, pid4_p);
    _mav_put_int16_t(buf, 20, pid4_i);
    _mav_put_int16_t(buf, 22, pid4_d);
    _mav_put_int16_t(buf, 24, pid5_p);
    _mav_put_int16_t(buf, 26, pid5_i);
    _mav_put_int16_t(buf, 28, pid5_d);
    _mav_put_int16_t(buf, 30, pid6_p);
    _mav_put_int16_t(buf, 32, pid6_i);
    _mav_put_int16_t(buf, 34, pid6_d);
    _mav_put_int16_t(buf, 36, pid7_p);
    _mav_put_int16_t(buf, 38, pid7_i);
    _mav_put_int16_t(buf, 40, pid7_d);
    _mav_put_int16_t(buf, 42, pid8_p);
    _mav_put_int16_t(buf, 44, pid8_i);
    _mav_put_int16_t(buf, 46, pid8_d);
    _mav_put_int16_t(buf, 48, pid9_p);
    _mav_put_int16_t(buf, 50, pid9_i);
    _mav_put_int16_t(buf, 52, pid9_d);
    _mav_put_int16_t(buf, 54, pid10_p);
    _mav_put_int16_t(buf, 56, pid10_i);
    _mav_put_int16_t(buf, 58, pid10_d);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CONTROL_PARA_LEN);
#else
    mavlink_control_para_t packet;
    packet.pid1_p = pid1_p;
    packet.pid1_i = pid1_i;
    packet.pid1_d = pid1_d;
    packet.pid2_p = pid2_p;
    packet.pid2_i = pid2_i;
    packet.pid2_d = pid2_d;
    packet.pid3_p = pid3_p;
    packet.pid3_i = pid3_i;
    packet.pid3_d = pid3_d;
    packet.pid4_p = pid4_p;
    packet.pid4_i = pid4_i;
    packet.pid4_d = pid4_d;
    packet.pid5_p = pid5_p;
    packet.pid5_i = pid5_i;
    packet.pid5_d = pid5_d;
    packet.pid6_p = pid6_p;
    packet.pid6_i = pid6_i;
    packet.pid6_d = pid6_d;
    packet.pid7_p = pid7_p;
    packet.pid7_i = pid7_i;
    packet.pid7_d = pid7_d;
    packet.pid8_p = pid8_p;
    packet.pid8_i = pid8_i;
    packet.pid8_d = pid8_d;
    packet.pid9_p = pid9_p;
    packet.pid9_i = pid9_i;
    packet.pid9_d = pid9_d;
    packet.pid10_p = pid10_p;
    packet.pid10_i = pid10_i;
    packet.pid10_d = pid10_d;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CONTROL_PARA_LEN);
#endif

    msg->msgid = MAVLINK_MSG_ID_CONTROL_PARA;
    return mavlink_finalize_message(msg, system_id, component_id, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
}

/**
 * @brief Pack a control_para message on a channel
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message will be sent over
 * @param msg The MAVLink message to compress the data into
 * @param pid1_p  PID1_P
 * @param pid1_i  PID1_I
 * @param pid1_d  PID1_D
 * @param pid2_p  PID2_P
 * @param pid2_i  PID2_I
 * @param pid2_d  PID2_D
 * @param pid3_p  PID3_P
 * @param pid3_i  PID3_I
 * @param pid3_d  PID3_D
 * @param pid4_p  PID4_P
 * @param pid4_i  PID4_I
 * @param pid4_d  PID4_D
 * @param pid5_p  PID5_P
 * @param pid5_i  PID5_I
 * @param pid5_d  PID5_D
 * @param pid6_p  PID6_P
 * @param pid6_i  PID6_I
 * @param pid6_d  PID6_D
 * @param pid7_p  PID7_P
 * @param pid7_i  PID7_I
 * @param pid7_d  PID7_D
 * @param pid8_p  PID8_P
 * @param pid8_i  PID8_I
 * @param pid8_d  PID8_D
 * @param pid9_p  PID9_P
 * @param pid9_i  PID9_I
 * @param pid9_d  PID9_D
 * @param pid10_p  PID10_P
 * @param pid10_i  PID10_I
 * @param pid10_d  PID10_D
 * @return length of the message in bytes (excluding serial stream start sign)
 */
static inline uint16_t mavlink_msg_control_para_pack_chan(uint8_t system_id, uint8_t component_id, uint8_t chan,
                               mavlink_message_t* msg,
                                   int16_t pid1_p,int16_t pid1_i,int16_t pid1_d,int16_t pid2_p,int16_t pid2_i,int16_t pid2_d,int16_t pid3_p,int16_t pid3_i,int16_t pid3_d,int16_t pid4_p,int16_t pid4_i,int16_t pid4_d,int16_t pid5_p,int16_t pid5_i,int16_t pid5_d,int16_t pid6_p,int16_t pid6_i,int16_t pid6_d,int16_t pid7_p,int16_t pid7_i,int16_t pid7_d,int16_t pid8_p,int16_t pid8_i,int16_t pid8_d,int16_t pid9_p,int16_t pid9_i,int16_t pid9_d,int16_t pid10_p,int16_t pid10_i,int16_t pid10_d)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_CONTROL_PARA_LEN];
    _mav_put_int16_t(buf, 0, pid1_p);
    _mav_put_int16_t(buf, 2, pid1_i);
    _mav_put_int16_t(buf, 4, pid1_d);
    _mav_put_int16_t(buf, 6, pid2_p);
    _mav_put_int16_t(buf, 8, pid2_i);
    _mav_put_int16_t(buf, 10, pid2_d);
    _mav_put_int16_t(buf, 12, pid3_p);
    _mav_put_int16_t(buf, 14, pid3_i);
    _mav_put_int16_t(buf, 16, pid3_d);
    _mav_put_int16_t(buf, 18, pid4_p);
    _mav_put_int16_t(buf, 20, pid4_i);
    _mav_put_int16_t(buf, 22, pid4_d);
    _mav_put_int16_t(buf, 24, pid5_p);
    _mav_put_int16_t(buf, 26, pid5_i);
    _mav_put_int16_t(buf, 28, pid5_d);
    _mav_put_int16_t(buf, 30, pid6_p);
    _mav_put_int16_t(buf, 32, pid6_i);
    _mav_put_int16_t(buf, 34, pid6_d);
    _mav_put_int16_t(buf, 36, pid7_p);
    _mav_put_int16_t(buf, 38, pid7_i);
    _mav_put_int16_t(buf, 40, pid7_d);
    _mav_put_int16_t(buf, 42, pid8_p);
    _mav_put_int16_t(buf, 44, pid8_i);
    _mav_put_int16_t(buf, 46, pid8_d);
    _mav_put_int16_t(buf, 48, pid9_p);
    _mav_put_int16_t(buf, 50, pid9_i);
    _mav_put_int16_t(buf, 52, pid9_d);
    _mav_put_int16_t(buf, 54, pid10_p);
    _mav_put_int16_t(buf, 56, pid10_i);
    _mav_put_int16_t(buf, 58, pid10_d);

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), buf, MAVLINK_MSG_ID_CONTROL_PARA_LEN);
#else
    mavlink_control_para_t packet;
    packet.pid1_p = pid1_p;
    packet.pid1_i = pid1_i;
    packet.pid1_d = pid1_d;
    packet.pid2_p = pid2_p;
    packet.pid2_i = pid2_i;
    packet.pid2_d = pid2_d;
    packet.pid3_p = pid3_p;
    packet.pid3_i = pid3_i;
    packet.pid3_d = pid3_d;
    packet.pid4_p = pid4_p;
    packet.pid4_i = pid4_i;
    packet.pid4_d = pid4_d;
    packet.pid5_p = pid5_p;
    packet.pid5_i = pid5_i;
    packet.pid5_d = pid5_d;
    packet.pid6_p = pid6_p;
    packet.pid6_i = pid6_i;
    packet.pid6_d = pid6_d;
    packet.pid7_p = pid7_p;
    packet.pid7_i = pid7_i;
    packet.pid7_d = pid7_d;
    packet.pid8_p = pid8_p;
    packet.pid8_i = pid8_i;
    packet.pid8_d = pid8_d;
    packet.pid9_p = pid9_p;
    packet.pid9_i = pid9_i;
    packet.pid9_d = pid9_d;
    packet.pid10_p = pid10_p;
    packet.pid10_i = pid10_i;
    packet.pid10_d = pid10_d;

        memcpy(_MAV_PAYLOAD_NON_CONST(msg), &packet, MAVLINK_MSG_ID_CONTROL_PARA_LEN);
#endif

    msg->msgid = MAVLINK_MSG_ID_CONTROL_PARA;
    return mavlink_finalize_message_chan(msg, system_id, component_id, chan, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
}

/**
 * @brief Encode a control_para struct
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param msg The MAVLink message to compress the data into
 * @param control_para C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_control_para_encode(uint8_t system_id, uint8_t component_id, mavlink_message_t* msg, const mavlink_control_para_t* control_para)
{
    return mavlink_msg_control_para_pack(system_id, component_id, msg, control_para->pid1_p, control_para->pid1_i, control_para->pid1_d, control_para->pid2_p, control_para->pid2_i, control_para->pid2_d, control_para->pid3_p, control_para->pid3_i, control_para->pid3_d, control_para->pid4_p, control_para->pid4_i, control_para->pid4_d, control_para->pid5_p, control_para->pid5_i, control_para->pid5_d, control_para->pid6_p, control_para->pid6_i, control_para->pid6_d, control_para->pid7_p, control_para->pid7_i, control_para->pid7_d, control_para->pid8_p, control_para->pid8_i, control_para->pid8_d, control_para->pid9_p, control_para->pid9_i, control_para->pid9_d, control_para->pid10_p, control_para->pid10_i, control_para->pid10_d);
}

/**
 * @brief Encode a control_para struct on a channel
 *
 * @param system_id ID of this system
 * @param component_id ID of this component (e.g. 200 for IMU)
 * @param chan The MAVLink channel this message will be sent over
 * @param msg The MAVLink message to compress the data into
 * @param control_para C-struct to read the message contents from
 */
static inline uint16_t mavlink_msg_control_para_encode_chan(uint8_t system_id, uint8_t component_id, uint8_t chan, mavlink_message_t* msg, const mavlink_control_para_t* control_para)
{
    return mavlink_msg_control_para_pack_chan(system_id, component_id, chan, msg, control_para->pid1_p, control_para->pid1_i, control_para->pid1_d, control_para->pid2_p, control_para->pid2_i, control_para->pid2_d, control_para->pid3_p, control_para->pid3_i, control_para->pid3_d, control_para->pid4_p, control_para->pid4_i, control_para->pid4_d, control_para->pid5_p, control_para->pid5_i, control_para->pid5_d, control_para->pid6_p, control_para->pid6_i, control_para->pid6_d, control_para->pid7_p, control_para->pid7_i, control_para->pid7_d, control_para->pid8_p, control_para->pid8_i, control_para->pid8_d, control_para->pid9_p, control_para->pid9_i, control_para->pid9_d, control_para->pid10_p, control_para->pid10_i, control_para->pid10_d);
}

/**
 * @brief Send a control_para message
 * @param chan MAVLink channel to send the message
 *
 * @param pid1_p  PID1_P
 * @param pid1_i  PID1_I
 * @param pid1_d  PID1_D
 * @param pid2_p  PID2_P
 * @param pid2_i  PID2_I
 * @param pid2_d  PID2_D
 * @param pid3_p  PID3_P
 * @param pid3_i  PID3_I
 * @param pid3_d  PID3_D
 * @param pid4_p  PID4_P
 * @param pid4_i  PID4_I
 * @param pid4_d  PID4_D
 * @param pid5_p  PID5_P
 * @param pid5_i  PID5_I
 * @param pid5_d  PID5_D
 * @param pid6_p  PID6_P
 * @param pid6_i  PID6_I
 * @param pid6_d  PID6_D
 * @param pid7_p  PID7_P
 * @param pid7_i  PID7_I
 * @param pid7_d  PID7_D
 * @param pid8_p  PID8_P
 * @param pid8_i  PID8_I
 * @param pid8_d  PID8_D
 * @param pid9_p  PID9_P
 * @param pid9_i  PID9_I
 * @param pid9_d  PID9_D
 * @param pid10_p  PID10_P
 * @param pid10_i  PID10_I
 * @param pid10_d  PID10_D
 */
#ifdef MAVLINK_USE_CONVENIENCE_FUNCTIONS

static inline void mavlink_msg_control_para_send(mavlink_channel_t chan, int16_t pid1_p, int16_t pid1_i, int16_t pid1_d, int16_t pid2_p, int16_t pid2_i, int16_t pid2_d, int16_t pid3_p, int16_t pid3_i, int16_t pid3_d, int16_t pid4_p, int16_t pid4_i, int16_t pid4_d, int16_t pid5_p, int16_t pid5_i, int16_t pid5_d, int16_t pid6_p, int16_t pid6_i, int16_t pid6_d, int16_t pid7_p, int16_t pid7_i, int16_t pid7_d, int16_t pid8_p, int16_t pid8_i, int16_t pid8_d, int16_t pid9_p, int16_t pid9_i, int16_t pid9_d, int16_t pid10_p, int16_t pid10_i, int16_t pid10_d)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char buf[MAVLINK_MSG_ID_CONTROL_PARA_LEN];
    _mav_put_int16_t(buf, 0, pid1_p);
    _mav_put_int16_t(buf, 2, pid1_i);
    _mav_put_int16_t(buf, 4, pid1_d);
    _mav_put_int16_t(buf, 6, pid2_p);
    _mav_put_int16_t(buf, 8, pid2_i);
    _mav_put_int16_t(buf, 10, pid2_d);
    _mav_put_int16_t(buf, 12, pid3_p);
    _mav_put_int16_t(buf, 14, pid3_i);
    _mav_put_int16_t(buf, 16, pid3_d);
    _mav_put_int16_t(buf, 18, pid4_p);
    _mav_put_int16_t(buf, 20, pid4_i);
    _mav_put_int16_t(buf, 22, pid4_d);
    _mav_put_int16_t(buf, 24, pid5_p);
    _mav_put_int16_t(buf, 26, pid5_i);
    _mav_put_int16_t(buf, 28, pid5_d);
    _mav_put_int16_t(buf, 30, pid6_p);
    _mav_put_int16_t(buf, 32, pid6_i);
    _mav_put_int16_t(buf, 34, pid6_d);
    _mav_put_int16_t(buf, 36, pid7_p);
    _mav_put_int16_t(buf, 38, pid7_i);
    _mav_put_int16_t(buf, 40, pid7_d);
    _mav_put_int16_t(buf, 42, pid8_p);
    _mav_put_int16_t(buf, 44, pid8_i);
    _mav_put_int16_t(buf, 46, pid8_d);
    _mav_put_int16_t(buf, 48, pid9_p);
    _mav_put_int16_t(buf, 50, pid9_i);
    _mav_put_int16_t(buf, 52, pid9_d);
    _mav_put_int16_t(buf, 54, pid10_p);
    _mav_put_int16_t(buf, 56, pid10_i);
    _mav_put_int16_t(buf, 58, pid10_d);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONTROL_PARA, buf, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
#else
    mavlink_control_para_t packet;
    packet.pid1_p = pid1_p;
    packet.pid1_i = pid1_i;
    packet.pid1_d = pid1_d;
    packet.pid2_p = pid2_p;
    packet.pid2_i = pid2_i;
    packet.pid2_d = pid2_d;
    packet.pid3_p = pid3_p;
    packet.pid3_i = pid3_i;
    packet.pid3_d = pid3_d;
    packet.pid4_p = pid4_p;
    packet.pid4_i = pid4_i;
    packet.pid4_d = pid4_d;
    packet.pid5_p = pid5_p;
    packet.pid5_i = pid5_i;
    packet.pid5_d = pid5_d;
    packet.pid6_p = pid6_p;
    packet.pid6_i = pid6_i;
    packet.pid6_d = pid6_d;
    packet.pid7_p = pid7_p;
    packet.pid7_i = pid7_i;
    packet.pid7_d = pid7_d;
    packet.pid8_p = pid8_p;
    packet.pid8_i = pid8_i;
    packet.pid8_d = pid8_d;
    packet.pid9_p = pid9_p;
    packet.pid9_i = pid9_i;
    packet.pid9_d = pid9_d;
    packet.pid10_p = pid10_p;
    packet.pid10_i = pid10_i;
    packet.pid10_d = pid10_d;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONTROL_PARA, (const char *)&packet, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
#endif
}

/**
 * @brief Send a control_para message
 * @param chan MAVLink channel to send the message
 * @param struct The MAVLink struct to serialize
 */
static inline void mavlink_msg_control_para_send_struct(mavlink_channel_t chan, const mavlink_control_para_t* control_para)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    mavlink_msg_control_para_send(chan, control_para->pid1_p, control_para->pid1_i, control_para->pid1_d, control_para->pid2_p, control_para->pid2_i, control_para->pid2_d, control_para->pid3_p, control_para->pid3_i, control_para->pid3_d, control_para->pid4_p, control_para->pid4_i, control_para->pid4_d, control_para->pid5_p, control_para->pid5_i, control_para->pid5_d, control_para->pid6_p, control_para->pid6_i, control_para->pid6_d, control_para->pid7_p, control_para->pid7_i, control_para->pid7_d, control_para->pid8_p, control_para->pid8_i, control_para->pid8_d, control_para->pid9_p, control_para->pid9_i, control_para->pid9_d, control_para->pid10_p, control_para->pid10_i, control_para->pid10_d);
#else
    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONTROL_PARA, (const char *)control_para, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
#endif
}

#if MAVLINK_MSG_ID_CONTROL_PARA_LEN <= MAVLINK_MAX_PAYLOAD_LEN
/*
  This varient of _send() can be used to save stack space by re-using
  memory from the receive buffer.  The caller provides a
  mavlink_message_t which is the size of a full mavlink message. This
  is usually the receive buffer for the channel, and allows a reply to an
  incoming message with minimum stack space usage.
 */
static inline void mavlink_msg_control_para_send_buf(mavlink_message_t *msgbuf, mavlink_channel_t chan,  int16_t pid1_p, int16_t pid1_i, int16_t pid1_d, int16_t pid2_p, int16_t pid2_i, int16_t pid2_d, int16_t pid3_p, int16_t pid3_i, int16_t pid3_d, int16_t pid4_p, int16_t pid4_i, int16_t pid4_d, int16_t pid5_p, int16_t pid5_i, int16_t pid5_d, int16_t pid6_p, int16_t pid6_i, int16_t pid6_d, int16_t pid7_p, int16_t pid7_i, int16_t pid7_d, int16_t pid8_p, int16_t pid8_i, int16_t pid8_d, int16_t pid9_p, int16_t pid9_i, int16_t pid9_d, int16_t pid10_p, int16_t pid10_i, int16_t pid10_d)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    char *buf = (char *)msgbuf;
    _mav_put_int16_t(buf, 0, pid1_p);
    _mav_put_int16_t(buf, 2, pid1_i);
    _mav_put_int16_t(buf, 4, pid1_d);
    _mav_put_int16_t(buf, 6, pid2_p);
    _mav_put_int16_t(buf, 8, pid2_i);
    _mav_put_int16_t(buf, 10, pid2_d);
    _mav_put_int16_t(buf, 12, pid3_p);
    _mav_put_int16_t(buf, 14, pid3_i);
    _mav_put_int16_t(buf, 16, pid3_d);
    _mav_put_int16_t(buf, 18, pid4_p);
    _mav_put_int16_t(buf, 20, pid4_i);
    _mav_put_int16_t(buf, 22, pid4_d);
    _mav_put_int16_t(buf, 24, pid5_p);
    _mav_put_int16_t(buf, 26, pid5_i);
    _mav_put_int16_t(buf, 28, pid5_d);
    _mav_put_int16_t(buf, 30, pid6_p);
    _mav_put_int16_t(buf, 32, pid6_i);
    _mav_put_int16_t(buf, 34, pid6_d);
    _mav_put_int16_t(buf, 36, pid7_p);
    _mav_put_int16_t(buf, 38, pid7_i);
    _mav_put_int16_t(buf, 40, pid7_d);
    _mav_put_int16_t(buf, 42, pid8_p);
    _mav_put_int16_t(buf, 44, pid8_i);
    _mav_put_int16_t(buf, 46, pid8_d);
    _mav_put_int16_t(buf, 48, pid9_p);
    _mav_put_int16_t(buf, 50, pid9_i);
    _mav_put_int16_t(buf, 52, pid9_d);
    _mav_put_int16_t(buf, 54, pid10_p);
    _mav_put_int16_t(buf, 56, pid10_i);
    _mav_put_int16_t(buf, 58, pid10_d);

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONTROL_PARA, buf, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
#else
    mavlink_control_para_t *packet = (mavlink_control_para_t *)msgbuf;
    packet->pid1_p = pid1_p;
    packet->pid1_i = pid1_i;
    packet->pid1_d = pid1_d;
    packet->pid2_p = pid2_p;
    packet->pid2_i = pid2_i;
    packet->pid2_d = pid2_d;
    packet->pid3_p = pid3_p;
    packet->pid3_i = pid3_i;
    packet->pid3_d = pid3_d;
    packet->pid4_p = pid4_p;
    packet->pid4_i = pid4_i;
    packet->pid4_d = pid4_d;
    packet->pid5_p = pid5_p;
    packet->pid5_i = pid5_i;
    packet->pid5_d = pid5_d;
    packet->pid6_p = pid6_p;
    packet->pid6_i = pid6_i;
    packet->pid6_d = pid6_d;
    packet->pid7_p = pid7_p;
    packet->pid7_i = pid7_i;
    packet->pid7_d = pid7_d;
    packet->pid8_p = pid8_p;
    packet->pid8_i = pid8_i;
    packet->pid8_d = pid8_d;
    packet->pid9_p = pid9_p;
    packet->pid9_i = pid9_i;
    packet->pid9_d = pid9_d;
    packet->pid10_p = pid10_p;
    packet->pid10_i = pid10_i;
    packet->pid10_d = pid10_d;

    _mav_finalize_message_chan_send(chan, MAVLINK_MSG_ID_CONTROL_PARA, (const char *)packet, MAVLINK_MSG_ID_CONTROL_PARA_MIN_LEN, MAVLINK_MSG_ID_CONTROL_PARA_LEN, MAVLINK_MSG_ID_CONTROL_PARA_CRC);
#endif
}
#endif

#endif

// MESSAGE CONTROL_PARA UNPACKING


/**
 * @brief Get field pid1_p from control_para message
 *
 * @return  PID1_P
 */
static inline int16_t mavlink_msg_control_para_get_pid1_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  0);
}

/**
 * @brief Get field pid1_i from control_para message
 *
 * @return  PID1_I
 */
static inline int16_t mavlink_msg_control_para_get_pid1_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  2);
}

/**
 * @brief Get field pid1_d from control_para message
 *
 * @return  PID1_D
 */
static inline int16_t mavlink_msg_control_para_get_pid1_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  4);
}

/**
 * @brief Get field pid2_p from control_para message
 *
 * @return  PID2_P
 */
static inline int16_t mavlink_msg_control_para_get_pid2_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  6);
}

/**
 * @brief Get field pid2_i from control_para message
 *
 * @return  PID2_I
 */
static inline int16_t mavlink_msg_control_para_get_pid2_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  8);
}

/**
 * @brief Get field pid2_d from control_para message
 *
 * @return  PID2_D
 */
static inline int16_t mavlink_msg_control_para_get_pid2_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  10);
}

/**
 * @brief Get field pid3_p from control_para message
 *
 * @return  PID3_P
 */
static inline int16_t mavlink_msg_control_para_get_pid3_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  12);
}

/**
 * @brief Get field pid3_i from control_para message
 *
 * @return  PID3_I
 */
static inline int16_t mavlink_msg_control_para_get_pid3_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  14);
}

/**
 * @brief Get field pid3_d from control_para message
 *
 * @return  PID3_D
 */
static inline int16_t mavlink_msg_control_para_get_pid3_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  16);
}

/**
 * @brief Get field pid4_p from control_para message
 *
 * @return  PID4_P
 */
static inline int16_t mavlink_msg_control_para_get_pid4_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  18);
}

/**
 * @brief Get field pid4_i from control_para message
 *
 * @return  PID4_I
 */
static inline int16_t mavlink_msg_control_para_get_pid4_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  20);
}

/**
 * @brief Get field pid4_d from control_para message
 *
 * @return  PID4_D
 */
static inline int16_t mavlink_msg_control_para_get_pid4_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  22);
}

/**
 * @brief Get field pid5_p from control_para message
 *
 * @return  PID5_P
 */
static inline int16_t mavlink_msg_control_para_get_pid5_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  24);
}

/**
 * @brief Get field pid5_i from control_para message
 *
 * @return  PID5_I
 */
static inline int16_t mavlink_msg_control_para_get_pid5_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  26);
}

/**
 * @brief Get field pid5_d from control_para message
 *
 * @return  PID5_D
 */
static inline int16_t mavlink_msg_control_para_get_pid5_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  28);
}

/**
 * @brief Get field pid6_p from control_para message
 *
 * @return  PID6_P
 */
static inline int16_t mavlink_msg_control_para_get_pid6_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  30);
}

/**
 * @brief Get field pid6_i from control_para message
 *
 * @return  PID6_I
 */
static inline int16_t mavlink_msg_control_para_get_pid6_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  32);
}

/**
 * @brief Get field pid6_d from control_para message
 *
 * @return  PID6_D
 */
static inline int16_t mavlink_msg_control_para_get_pid6_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  34);
}

/**
 * @brief Get field pid7_p from control_para message
 *
 * @return  PID7_P
 */
static inline int16_t mavlink_msg_control_para_get_pid7_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  36);
}

/**
 * @brief Get field pid7_i from control_para message
 *
 * @return  PID7_I
 */
static inline int16_t mavlink_msg_control_para_get_pid7_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  38);
}

/**
 * @brief Get field pid7_d from control_para message
 *
 * @return  PID7_D
 */
static inline int16_t mavlink_msg_control_para_get_pid7_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  40);
}

/**
 * @brief Get field pid8_p from control_para message
 *
 * @return  PID8_P
 */
static inline int16_t mavlink_msg_control_para_get_pid8_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  42);
}

/**
 * @brief Get field pid8_i from control_para message
 *
 * @return  PID8_I
 */
static inline int16_t mavlink_msg_control_para_get_pid8_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  44);
}

/**
 * @brief Get field pid8_d from control_para message
 *
 * @return  PID8_D
 */
static inline int16_t mavlink_msg_control_para_get_pid8_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  46);
}

/**
 * @brief Get field pid9_p from control_para message
 *
 * @return  PID9_P
 */
static inline int16_t mavlink_msg_control_para_get_pid9_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  48);
}

/**
 * @brief Get field pid9_i from control_para message
 *
 * @return  PID9_I
 */
static inline int16_t mavlink_msg_control_para_get_pid9_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  50);
}

/**
 * @brief Get field pid9_d from control_para message
 *
 * @return  PID9_D
 */
static inline int16_t mavlink_msg_control_para_get_pid9_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  52);
}

/**
 * @brief Get field pid10_p from control_para message
 *
 * @return  PID10_P
 */
static inline int16_t mavlink_msg_control_para_get_pid10_p(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  54);
}

/**
 * @brief Get field pid10_i from control_para message
 *
 * @return  PID10_I
 */
static inline int16_t mavlink_msg_control_para_get_pid10_i(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  56);
}

/**
 * @brief Get field pid10_d from control_para message
 *
 * @return  PID10_D
 */
static inline int16_t mavlink_msg_control_para_get_pid10_d(const mavlink_message_t* msg)
{
    return _MAV_RETURN_int16_t(msg,  58);
}

/**
 * @brief Decode a control_para message into a struct
 *
 * @param msg The message to decode
 * @param control_para C-struct to decode the message contents into
 */
static inline void mavlink_msg_control_para_decode(const mavlink_message_t* msg, mavlink_control_para_t* control_para)
{
#if MAVLINK_NEED_BYTE_SWAP || !MAVLINK_ALIGNED_FIELDS
    control_para->pid1_p = mavlink_msg_control_para_get_pid1_p(msg);
    control_para->pid1_i = mavlink_msg_control_para_get_pid1_i(msg);
    control_para->pid1_d = mavlink_msg_control_para_get_pid1_d(msg);
    control_para->pid2_p = mavlink_msg_control_para_get_pid2_p(msg);
    control_para->pid2_i = mavlink_msg_control_para_get_pid2_i(msg);
    control_para->pid2_d = mavlink_msg_control_para_get_pid2_d(msg);
    control_para->pid3_p = mavlink_msg_control_para_get_pid3_p(msg);
    control_para->pid3_i = mavlink_msg_control_para_get_pid3_i(msg);
    control_para->pid3_d = mavlink_msg_control_para_get_pid3_d(msg);
    control_para->pid4_p = mavlink_msg_control_para_get_pid4_p(msg);
    control_para->pid4_i = mavlink_msg_control_para_get_pid4_i(msg);
    control_para->pid4_d = mavlink_msg_control_para_get_pid4_d(msg);
    control_para->pid5_p = mavlink_msg_control_para_get_pid5_p(msg);
    control_para->pid5_i = mavlink_msg_control_para_get_pid5_i(msg);
    control_para->pid5_d = mavlink_msg_control_para_get_pid5_d(msg);
    control_para->pid6_p = mavlink_msg_control_para_get_pid6_p(msg);
    control_para->pid6_i = mavlink_msg_control_para_get_pid6_i(msg);
    control_para->pid6_d = mavlink_msg_control_para_get_pid6_d(msg);
    control_para->pid7_p = mavlink_msg_control_para_get_pid7_p(msg);
    control_para->pid7_i = mavlink_msg_control_para_get_pid7_i(msg);
    control_para->pid7_d = mavlink_msg_control_para_get_pid7_d(msg);
    control_para->pid8_p = mavlink_msg_control_para_get_pid8_p(msg);
    control_para->pid8_i = mavlink_msg_control_para_get_pid8_i(msg);
    control_para->pid8_d = mavlink_msg_control_para_get_pid8_d(msg);
    control_para->pid9_p = mavlink_msg_control_para_get_pid9_p(msg);
    control_para->pid9_i = mavlink_msg_control_para_get_pid9_i(msg);
    control_para->pid9_d = mavlink_msg_control_para_get_pid9_d(msg);
    control_para->pid10_p = mavlink_msg_control_para_get_pid10_p(msg);
    control_para->pid10_i = mavlink_msg_control_para_get_pid10_i(msg);
    control_para->pid10_d = mavlink_msg_control_para_get_pid10_d(msg);
#else
        uint8_t len = msg->len < MAVLINK_MSG_ID_CONTROL_PARA_LEN? msg->len : MAVLINK_MSG_ID_CONTROL_PARA_LEN;
        memset(control_para, 0, MAVLINK_MSG_ID_CONTROL_PARA_LEN);
    memcpy(control_para, _MAV_PAYLOAD(msg), len);
#endif
}
